<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<style>

</style>
<body>
    
</body>
<script>
var star = '★'
function star(str) {
    console.log(str)
}
//九九乘法口诀表
var a = '<table border="1" cellpadding="0" cellspacing="0">'
for(var i = 1;i<=9; i++) {
    a += '<tr>'
    for (var j = 1; j<=i; j++){
        a += '<td>'+'  '+i+'*'+j+'='+i*j+'  '+'</td>'
        console.log(`${i}*${j}=${i*j}`)
        if(i === j ) {
            a += '</tr>'
            console.log('\n')
        }
    }
}
a += '</table>'
console.log(a)
document.body.innerHTML = a
</script>
</html>